package com.ciaojian.pay.wxpay.model.request;

import com.ciaojian.pay.core.model.BaseModel;

/**
 * 统一下单 Model
 * <p>改自 IJPay</p>
 *
 * @author Atlakyn
 */
public class UnifiedOrderModel extends BaseModel {
    private String appid;
    private String mch_id;
    private String sub_appid;
    private String sub_mch_id;
    private String device_info;
    private String nonce_str;
    private String sign;
    private String sign_type;
    private String body;
    private String detail;

    /**
     * 附加数据，在查询API和支付通知中原样返回，可作为自定义参数使用
     */
    private String attach;

    private String out_trade_no;
    private String fee_type;
    private String total_fee;
    private String spbill_create_ip;
    private String time_start;
    private String time_expire;
    private String goods_tag;
    private String notify_url;
    private String trade_type;
    private String product_id;
    private String limit_pay;
    private String openid;
    private String sub_openid;
    private String receipt;
    private String scene_info;

    /**
     * 是否分账
     */
    private String profit_sharing;

    public static UnifiedOrderModel builder() {
        return new UnifiedOrderModel();
    }

    public UnifiedOrderModel appid(String appid) {
        this.appid = appid;
        return this;
    }

    public UnifiedOrderModel mch_id(String mch_id) {
        this.mch_id = mch_id;
        return this;
    }

    public UnifiedOrderModel sub_appid(String sub_appid) {
        this.sub_appid = sub_appid;
        return this;
    }

    public UnifiedOrderModel sub_mch_id(String sub_mch_id) {
        this.sub_mch_id = sub_mch_id;
        return this;
    }

    public UnifiedOrderModel device_info(String device_info) {
        this.device_info = device_info;
        return this;
    }

    public UnifiedOrderModel nonce_str(String nonce_str) {
        this.nonce_str = nonce_str;
        return this;
    }

    public UnifiedOrderModel sign(String sign) {
        this.sign = sign;
        return this;
    }

    public UnifiedOrderModel sign_type(String sign_type) {
        this.sign_type = sign_type;
        return this;
    }

    public UnifiedOrderModel body(String body) {
        this.body = body;
        return this;
    }

    public UnifiedOrderModel detail(String detail) {
        this.detail = detail;
        return this;
    }

    public UnifiedOrderModel attach(String attach) {
        this.attach = attach;
        return this;
    }

    public UnifiedOrderModel out_trade_no(String out_trade_no) {
        this.out_trade_no = out_trade_no;
        return this;
    }

    public UnifiedOrderModel fee_type(String fee_type) {
        this.fee_type = fee_type;
        return this;
    }

    public UnifiedOrderModel total_fee(String total_fee) {
        this.total_fee = total_fee;
        return this;
    }

    public UnifiedOrderModel spbill_create_ip(String spbill_create_ip) {
        this.spbill_create_ip = spbill_create_ip;
        return this;
    }

    public UnifiedOrderModel time_start(String time_start) {
        this.time_start = time_start;
        return this;
    }

    public UnifiedOrderModel time_expire(String time_expire) {
        this.time_expire = time_expire;
        return this;
    }

    public UnifiedOrderModel goods_tag(String goods_tag) {
        this.goods_tag = goods_tag;
        return this;
    }

    public UnifiedOrderModel notify_url(String notify_url) {
        this.notify_url = notify_url;
        return this;
    }

    public UnifiedOrderModel trade_type(String trade_type) {
        this.trade_type = trade_type;
        return this;
    }

    public UnifiedOrderModel product_id(String product_id) {
        this.product_id = product_id;
        return this;
    }

    public UnifiedOrderModel limit_pay(String limit_pay) {
        this.limit_pay = limit_pay;
        return this;
    }

    public UnifiedOrderModel openid(String openid) {
        this.openid = openid;
        return this;
    }

    public UnifiedOrderModel sub_openid(String sub_openid) {
        this.sub_openid = sub_openid;
        return this;
    }

    public UnifiedOrderModel receipt(String receipt) {
        this.receipt = receipt;
        return this;
    }

    public UnifiedOrderModel scene_info(String scene_info) {
        this.scene_info = scene_info;
        return this;
    }

    public UnifiedOrderModel profit_sharing(String profit_sharing) {
        this.profit_sharing = profit_sharing;
        return this;
    }

    public UnifiedOrderModel build() {
        return this;
    }

    public String getAppid() {
        return appid;
    }

    public String getMch_id() {
        return mch_id;
    }

    public String getSub_appid() {
        return sub_appid;
    }

    public String getSub_mch_id() {
        return sub_mch_id;
    }

    public String getDevice_info() {
        return device_info;
    }

    public String getNonce_str() {
        return nonce_str;
    }

    public String getSign() {
        return sign;
    }

    public String getSign_type() {
        return sign_type;
    }

    public String getBody() {
        return body;
    }

    public String getDetail() {
        return detail;
    }

    public String getAttach() {
        return attach;
    }

    public String getOut_trade_no() {
        return out_trade_no;
    }

    public String getFee_type() {
        return fee_type;
    }

    public String getTotal_fee() {
        return total_fee;
    }

    public String getSpbill_create_ip() {
        return spbill_create_ip;
    }

    public String getTime_start() {
        return time_start;
    }

    public String getTime_expire() {
        return time_expire;
    }

    public String getGoods_tag() {
        return goods_tag;
    }

    public String getNotify_url() {
        return notify_url;
    }

    public String getTrade_type() {
        return trade_type;
    }

    public String getProduct_id() {
        return product_id;
    }

    public String getLimit_pay() {
        return limit_pay;
    }

    public String getOpenid() {
        return openid;
    }

    public String getSub_openid() {
        return sub_openid;
    }

    public String getReceipt() {
        return receipt;
    }

    public String getScene_info() {
        return scene_info;
    }

    public String getProfit_sharing() {
        return profit_sharing;
    }
}
